home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / prefs / printerps.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  4KB  |  173 lines

  1. #ifndef PREFS_PRINTERPS_H
  2. #define PREFS_PRINTERPS_H 1
  3. /*
  4. ** printerps.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for printerps.h
  17. */
  18. #ifndef PrinterPSPrefsPtr
  19. #define PrinterPSPrefsPtr ADDRESS
  20. #endif
  21. /*
  22. ** End of StructPointer defines for printerps.h
  23. */
  24.  
  25.  
  26. /*****************************************************************************/
  27.  
  28.  
  29. #ifndef EXEC_TYPES_H
  30. #include <exec/types.h>
  31. #endif
  32.  
  33. #ifndef LIBRARIES_IFFPARSE_H
  34. #include <libraries/iffparse.h>
  35. #endif
  36.  
  37.  
  38. /*****************************************************************************/
  39.  
  40.  
  41. #define ID_PSPD 1347637316 
  42.  
  43.  
  44. STRUCT PrinterPSPrefs
  45.  
  46.     STRING ps_Reserved SIZE 16  /* 4*SIZEOF(LONGINT) */       /* SYSTEM reserved */
  47.  
  48.     /* Global printing attributes */
  49.     BYTE  ps_DriverMode 
  50.     BYTE  ps_PaperFormat 
  51.     STRING ps_Reserved1 SIZE 2  
  52.     LONGINT  ps_Copies 
  53.     LONGINT  ps_PaperWidth 
  54.     LONGINT  ps_PaperHeight 
  55.     LONGINT  ps_HorizontalDPI 
  56.     LONGINT  ps_VerticalDPI 
  57.  
  58.     /* Text Options */
  59.     BYTE  ps_Font 
  60.     BYTE  ps_Pitch 
  61.     BYTE  ps_Orientation 
  62.     BYTE  ps_Tab 
  63.     STRING ps_Reserved2 SIZE 8  
  64.  
  65.     /* Text Dimensions */
  66.     LONGINT  ps_LeftMargin 
  67.     LONGINT  ps_RightMargin 
  68.     LONGINT  ps_TopMargin 
  69.     LONGINT  ps_BottomMargin 
  70.     LONGINT  ps_FontPointSize 
  71.     LONGINT  ps_Leading 
  72.     STRING ps_Reserved3 SIZE 8  
  73.  
  74.     /* Graphics Options */
  75.     LONGINT  ps_LeftEdge 
  76.     LONGINT  ps_TopEdge 
  77.     LONGINT  ps_Width 
  78.     LONGINT  ps_Height 
  79.     BYTE  ps_Image 
  80.     BYTE  ps_Shading 
  81.     BYTE  ps_Dithering 
  82.     STRING ps_Reserved4 SIZE 9  
  83.  
  84.     /* Graphics Scaling */
  85.     BYTE  ps_Aspect 
  86.     BYTE  ps_ScalingType 
  87.     BYTE  ps_Reserved5 
  88.     BYTE  ps_Centering 
  89.     STRING ps_Reserved6 SIZE 8  
  90. END STRUCT 
  91.  
  92. /* All measurements are in Millipoints which is 1/1000 of a point,  or
  93.  * in other words 1/72000 of an inch
  94.  */
  95.  
  96. /* constants for PrinterPSPrefs.ps_DriverMode */
  97. #define DM_POSTSCRIPT  0
  98. #define DM_PASSTHROUGH 1
  99.  
  100. /* constants for PrinterPSPrefs.ps_PaperFormat */
  101. #define PF_USLETTER 0
  102. #define PF_USLEGAL  1
  103. #define PF_A4       2
  104. #define PF_CUSTOM   3
  105.  
  106. /* constants for PrinterPSPrefs.ps_Font */
  107. #define FONT_COURIER      0
  108. #define FONT_TIMES    1
  109. #define FONT_HELVETICA    2
  110. #define FONT_HELV_NARROW  3
  111. #define FONT_AVANTGARDE   4
  112. #define FONT_BOOKMAN      5
  113. #define FONT_NEWCENT      6
  114. #define FONT_PALATINO     7
  115. #define FONT_ZAPFCHANCERY 8
  116.  
  117. /* constants for PrinterPSPrefs.ps_Pitch */
  118. #define PITCH_NORMAL     0
  119. #define PITCH_COMPRESSED 1
  120. #define PITCH_EXPANDED   2
  121.  
  122. /* constants for PrinterPSPrefs.ps_Orientation */
  123. #define ORIENT_PORTRAIT  0
  124. #define ORIENT_LANDSCAPE 1
  125.  
  126. /* constants for PrinterPSPrefs.ps_Tab */
  127. #define TAB_4     0
  128. #define TAB_8     1
  129. #define TAB_QUART 2
  130. #define TAB_HALF  3
  131. #define TAB_INCH  4
  132.  
  133. /* constants for PrinterPSPrefs.ps_Image */
  134. #define IM_POSITIVE 0
  135. #define IM_NEGATIVE 1
  136.  
  137. /* constants for PrinterPSPrefs.ps_Shading */
  138. #define SHAD_BW        0
  139. #define SHAD_GREYSCALE 1
  140. #define SHAD_COLOR     2
  141.  
  142. /* constants for PrinterPSPrefs.ps_Dithering */
  143. #define DITH_DEFAULT 0
  144. #define DITH_DOTTY   1
  145. #define DITH_VERT    2
  146. #define DITH_HORIZ   3
  147. #define DITH_DIAG    4
  148.  
  149. /* constants for PrinterPSPrefs.ps_Aspect */
  150. #define ASP_HORIZ 0
  151. #define ASP_VERT  1
  152.  
  153. /* constants for PrinterPSPrefs.ps_ScalingType */
  154. #define ST_ASPECT_ASIS    0
  155. #define ST_ASPECT_WIDE    1
  156. #define ST_ASPECT_TALL    2
  157. #define ST_ASPECT_BOTH    3
  158. #define ST_FITS_WIDE      4
  159. #define ST_FITS_TALL      5
  160. #define ST_FITS_BOTH      6
  161.  
  162. /* constants for PrinterPSPrefs.ps_Centering */
  163. #define CENT_NONE  0
  164. #define CENT_HORIZ 1
  165. #define CENT_VERT  2
  166. #define CENT_BOTH  3
  167.  
  168.  
  169. /*****************************************************************************/
  170.  
  171.  
  172. #endif /* PREFS_PRINTERPS_H */
  173.